Class symantec.itools.db.beans.sqleditor.SQLEditorPane
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.sqleditor.SQLEditorPane

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----JComponent
                           |
                           +----JTabbedPane
                                   |
                                   +----symantec.itools.db.beans.sqleditor.SQLEditorPane

public class SQLEditorPane
extends JTabbedPane
implements ResultChangeListener, PropertyChangeListener

This panel is the SQL editor. It just needs to be put within a Frame. This is a controler class that owns every panel.

Version:
1.0 06/15/97
Author:
Hristo Tonev

Variable Index

 o PROP_SQL_TEXT
 o changeSupport
 o sqlText
The value we will be editing.

Constructor Index

 o symantec.itools.db.beans.sqleditor.SQLEditorPane(Connection, String, PropertyChangeListener)

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Add a PropertyChangeListener to the listener list.
 o createSQLBuilderPane()
Create the right component in the first (SQL) page
 o createSQLPage()
Create the first (SQL) page in the SQL editor
 o firePropertyChange(String, Object, Object)
Support for reporting bound property changes.
 o getConnection()
 o getSQLText()
 o initializeGUI()
Initialize the SQL editor GUI
 o main(String[])
 o propertyChange(PropertyChangeEvent)
 o removeAllResults()
 o removePropertyChangeListener(PropertyChangeListener)
Remove a PropertyChangeListener from the listener list.
 o resultChange(ResultChangeEvent)
 o setConnection(Connection)
 o setSQLText(String)

Variables

 o PROP_SQL_TEXT
public static final java.lang.String PROP_SQL_TEXT
 o changeSupport
protected java.beans.PropertyChangeSupport changeSupport
 o sqlText
protected java.lang.String sqlText
The value we will be editing.

Constructors

 o SQLEditorPane
public SQLEditorPane(Connection connection,
                     String SQLText,
                     PropertyChangeListener listener)

Parameters:
connection - is an opened JDBC connection
SQLText - is the initial SQL text
listener - is a PropertyChangeListener that listens to any changes in the SQL text. (may be null)

Methods

 o addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.

Parameters:
listener - The PropertyChangeListener to be added
Overrides:
addPropertyChangeListener in class JComponent
 o createSQLBuilderPane
protected com.sun.java.swing.JSplitPane createSQLBuilderPane()
Create the right component in the first (SQL) page

 o createSQLPage
protected com.sun.java.swing.JSplitPane createSQLPage()
Create the first (SQL) page in the SQL editor

 o firePropertyChange
protected void firePropertyChange(String propertyName,
                                  Object oldValue,
                                  Object newValue)
Support for reporting bound property changes. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.

Overrides:
firePropertyChange in class JComponent
 o getConnection
public java.sql.Connection getConnection()
 o getSQLText
public java.lang.String getSQLText()
 o initializeGUI
protected void initializeGUI()
Initialize the SQL editor GUI

 o main
public static void main(String[] args)
 o propertyChange
public void propertyChange(PropertyChangeEvent evt)
 o removeAllResults
protected void removeAllResults()
 o removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.

Parameters:
listener - The PropertyChangeListener to be removed
Overrides:
removePropertyChangeListener in class JComponent
 o resultChange
public void resultChange(ResultChangeEvent evt)
 o setConnection
public void setConnection(Connection connection)
 o setSQLText
public void setSQLText(String newValue)

All Packages  Class Hierarchy  This Package  Previous  Next  Index